#ifndef _UTIL_H
#define _UTIL_H

#include "..\common\def.h"
#include "../math/vector.h"
#include "../math/matrix.h"
#include "string.h"
#include <stdio.h>

class EE_EXPORT CUtil
{
public:
	static string toString(const int value); 
	static string getFilename(const string& value); 
	static string getFormat(const string& value); 
	static string getRemoveFilepath(const string& value); 
	
	static long	unsigned int getFileSize(FILE* pFP);
	static string readString(FILE* pFP);
	static Matrix4f readMatrix(FILE* pFP);

	static int random(int range = 1); 
	static bool probability(const float p); 
	static float random(float range = 1.0f); 
	static float random(float min, float max); 

	static Vector3f randomVector(Vector3f axisScale = Vector3f(1,1,1)); 
	static Vector3f randomNormalizedVector(Vector3f axisScale = Vector3f(1,1,1)); 
}; 

#endif